Skip to content

test(phel): drop stale :phel override for (keyword "a/b/c") splitting - #22

Merged
JesusValeraDev merged 1 commit into
phel-lang:mainfrom
JesusValeraDev:fix/keyword-namespace-splitting
Jul 17, 2026
Merged

JesusValeraDev merged 1 commit into
phel-lang:mainfrom
JesusValeraDev:fix/keyword-namespace-splitting

Conversation

@JesusValeraDev

Copy link
Copy Markdown
Member

Phel now splits a slashed keyword string on the first / like JVM Clojure (phel-lang/phel-lang#2741, fixed in phel-lang/phel-lang#2762), so simple-ident? / simple-keyword? on (keyword "a/b/c") follow the :default false expectation instead of the old lenient :phel true branch.

Verified locally against the phel-lang PR branch: 5591/5591 suite tests pass.

Phel now splits a slashed keyword string on the first / like JVM
Clojure (phel-lang/phel-lang#2741), so simple-ident?/simple-keyword?
follow the :default expectation.
JesusValeraDev added a commit to phel-lang/phel-lang that referenced this pull request Jul 17, 2026
Picks up phel-lang/clojure-test-suite#22, which drops the stale
:phel override for (keyword "a/b/c") in simple-ident?/simple-keyword?.

Related to #2741
JesusValeraDev added a commit to phel-lang/phel-lang that referenced this pull request Jul 17, 2026
* fix(lang): parse namespace in keyword string constructor

Split (keyword s) on the first / into namespace and name, matching
symbol and Clojure. Add Keyword::createForNamespace for verbatim
construction (two-arg keyword, symbol input, emitter round-trip) and
key the intern pool by namespace and name separately so (nil, "a/b")
and ("a", "b") no longer collide.

Related to #2741

* ref(compiler): polish keyword literal emission after #2741

Related to #2741

* chore(ci): bump clojure-test-suite pin for keyword ns splitting

Picks up phel-lang/clojure-test-suite#22, which drops the stale
:phel override for (keyword "a/b/c") in simple-ident?/simple-keyword?.

Related to #2741
@JesusValeraDev
JesusValeraDev merged commit e024f31 into phel-lang:main Jul 17, 2026
4 checks passed
@JesusValeraDev
JesusValeraDev deleted the fix/keyword-namespace-splitting branch July 17, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant